package net.betou.cms.dao.assist;

import java.util.Date;

import net.betou.cms.entity.assist.CmsMessage;
import net.betou.common.hibernate3.Updater;
import net.betou.common.page.Pagination;


public interface CmsMessageDao{

	public Pagination getPage( Integer siteId, Integer sendUserId, Integer receiverUserId, String title, Date sendBeginTime, Date sendEndTime, Boolean status, Integer box, Boolean cacheable, int pageNo, int pageSize );

	public CmsMessage findById( Integer id );

	public CmsMessage save( CmsMessage bean );

	public CmsMessage updateByUpdater( Updater< CmsMessage > updater );

	public CmsMessage update( CmsMessage bean );

	public CmsMessage deleteById( Integer id );

	public CmsMessage [ ] deleteByIds( Integer [ ] ids );
}